import request from '@/utils/request'

// 查询库存变动明细列表
export function listLocalInventoryDetails(query) {
  return request({
    url: '/depot/localInventoryDetails/list',
    method: 'get',
    params: query
  })
}

// 查询库存变动明细详细
export function getLocalInventoryDetails(inventoryDetailId) {
  return request({
    url: '/depot/localInventoryDetails/' + inventoryDetailId,
    method: 'get'
  })
}

// 新增库存变动明细
export function addLocalInventoryDetails(data) {
  return request({
    url: '/depot/localInventoryDetails',
    method: 'post',
    data: data
  })
}

// 修改库存变动明细
export function updateLocalInventoryDetails(data) {
  return request({
    url: '/depot/localInventoryDetails',
    method: 'put',
    data: data
  })
}

// 删除库存变动明细
export function delLocalInventoryDetails(inventoryDetailId) {
  return request({
    url: '/depot/localInventoryDetails/' + inventoryDetailId,
    method: 'delete'
  })
}